import {createApp} from "vue";
import Vuex from "vuex";
import App from "@/App.vue";
import getters from "./getters";
import settings from "./modules/settings";
import user from "./modules/user";
import family from "./modules/family";
import genus from "./modules/genus";
import plant from "./modules/plant";
import cultivation from "./modules/cultivation";
import document from "./modules/document";
import crop from "./modules/crop";

var vue = createApp(App);
vue.use(Vuex);
const store = new Vuex.Store({
  modules: {
    settings,
    user,
    family,
    genus,
    plant,
      cultivation,
      document,
      crop
  },
  getters
});

export default store;
